Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
11 lines (7 loc) · 287 Bytes

3.7.10 - Coroutine/Socket->getsockname.md

File metadata and controls

11 lines (7 loc) · 287 Bytes

Coroutine\Socket->getsockname

获取socket的地址和端口信息。此方法没有协程调度开销。

function Coroutine\Socket->getsockname() | array;
  • 调用成功返回,包含addressport的数组
  • 调用失败返回false,并设置errCode属性